import React from 'react';
import './title.css'
import dongchedi from '../../assets/images/懂车帝.png'
import { useHistory } from 'react-router-dom';

const Title = (props) => {
  
  
    // const { handleOnclick, SearchBoxhandleOnclick }= props;
    // console.log(handleOnclick(),'---------------------');
    // let history = useHistory()
    return (

        <div className="title">
            <div className="return" onClick={()=>history.back()}>
                <svg t="1642407425495" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2084" width="200" height="200"><path d="M387.84 164.906667a22.122667 22.122667 0 0 0-0.362667-30.72 20.522667 20.522667 0 0 0-29.674666 0.362666L0 512.853333l357.802667 378.282667c8.042667 8.533333 21.290667 8.746667 29.674666 0.341333 8.32-8.32 8.533333-22.016 0.384-30.72L60.330667 512.853333 387.861333 164.906667z" fill="#3D3D3D" p-id="2085"></path></svg>
            </div>

            <div className='title-all'>
                <div className="title-icon">
                    <img src={dongchedi} alt="" />
                </div>
                <div className="title-text">
                    {/* <img src={dongchedi} alt="" /> */}
                    {/* <div className=''> */}
                    <p style={{ fontSize: '30px', fontFamily: 'LiShu', display: 'block' }} >懂车帝</p>
                    {/* </div> */}

                </div>
            </div>

        </div>
    )
}

export default Title
